package com.yuanfeng.order.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName OrderReturnReasonController
 * @Description 退货原因
 * @Author hyq
 * @Date 2023/6/26 13:45
 * @Version 1.0
 **/
@RestController
@RequestMapping("order/returnReason")
public class OrderReturnReasonController extends BaseController{

    /**
     * 获取退款原因
     *
     * @return
     */
    @GetMapping("/list")
    public ResponseResult list(@RequestParam("orderReturnReasonType") Integer orderReturnReasonType) {
        ResponseResult result = orderReturnReasonService.list(orderReturnReasonType);

        return result;
    }
}
